import 'package:flutter/material.dart';

class FErrorWidget extends StatefulWidget {
  FErrorWidgetState createState() => FErrorWidgetState();
}

class FErrorWidgetState extends State<FErrorWidget> {
  @override
  Widget build(BuildContext context) {
    return Container(
      alignment: Alignment.center,
      color: Colors.white,
      child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Padding(
                padding: const EdgeInsets.only(bottom: 10.0),
                child: Image.asset(
                  "images/error.png",
                  width: 60.0,
                  height: 60.0,
                )),
            Text(
              "系统繁忙, 请重试",
              style: TextStyle(
                  fontSize: 16.0,
                  color: Colors.black,
                  fontWeight: FontWeight.normal,
                  decoration: TextDecoration.none),
            ),
            Text(
              "或者联系工作人员",
              style: TextStyle(
                  fontSize: 16.0,
                  color: Colors.black,
                  fontWeight: FontWeight.normal,
                  decoration: TextDecoration.none),
            ),
            Padding(
                padding: const EdgeInsets.only(top: 20.0),
                child: RaisedButton(
                    onPressed: () {
                      Navigator.pop(context);
                    },
                    child: Text("返回"))),
          ]),
    );
  }
}
